//你的代码将被嵌在这里
#include <iostream>
using namespace std;
class TwoCoor
{
private:
    double x,y;
public:
    friend istream& operator>>(istream& is,TwoCoor& p);
    friend ostream& operator<<(ostream& os,const TwoCoor& p);
};
istream& operator>>(istream& is,TwoCoor& p)
{
    is>>p.x>>p.y;
    return is;
}
ostream& operator<<(ostream& os,const TwoCoor& p)
{
    os<<"("<<p.x<<","<<p.y<<")"<<endl;
    return os;
}


int main(){
    TwoCoor p;
    cin>>p;    
    cout<<"点p是："<<p;    
    return 0;
}